package com.itheima.service;

import com.itheima.domain.Member;

import java.util.ArrayList;

/**
 * 会员数据的业务层
 */
public interface MemberService {

    /**
     * 通过手机号查询会员
     * @param telephone
     * @return
     */
    Member selectByTelephone(String telephone);

    /**
     * 添加会员
     * @param member
     */
    void add(Member member);

    /**
     * 通过月份查找会员当月注册数量
     * @param months
     * @return
     */
    ArrayList<Integer> selectMemberCountByMonth(ArrayList<String> months);
}
